﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleService.EventBus
{
    public class OrderCreatedEventHandler : IIntegrationEventHandler<OrderCreatedEvent>
    {
        public async Task Handle(OrderCreatedEvent @event)
        {
            await Task.Run(() =>
            {
                // 处理订单创建事件逻辑...                
                @event.Status = "完成";
                Console.WriteLine($"订单创建事件处理完成，订单ID：{@event.OrderId};订单:{@event.OrderName}{@event.Status}");
            });
        }
    }
}
